<? include "./configs/session_check.php";
include "./configs/config.php";
?>
	<table class="fancy fullwidth">
						<thead>
							<tr>
								<th>ProjectID</th>
								<th>Project Title</th>
								<th>Deadline</th>
                                <th>Project Manager</th>
								<th>Department</th>
								<th>Section</th>
								
							</tr>
						</thead>
						<tbody>
                        <?
						$userid=$_SESSION['userid'];
                        $project_query=mysql_query("SELECT * FROM projects WHERE ProjectManager='$userid'");
						while($project_data=mysql_fetch_array($project_query)){
						?>
							<tr class="odd">
								<td><?=$project_data['ProjectID']?><a href="#" title="Project Details" class="tooltip table_icon"><img src="./assets/icons/actions_small/pencil.png" alt="" /></a></td>
								<td><?=$project_data['ProjectTitle']?></td>
								<td><?=$project_data['DeadLine']?></td>
								<td><?=$project_data['ProjectManager']?></td>
								<td><?=$project_data['Department']?></td>
								<td><?=$project_data['Section']?></td>
							</tr>
						<?
						}
						?>
						
						</tbody>
					</table>